package com.rao.mongodb.explorer.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 用户实体类
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2021/8/31 21:30
 */
@Data
@Document(collection = "t_member")
public class Member implements Serializable {

    @Id
    private long id;
    /** 账号*/
    private String loginName;
    /** 密码*/
    private String passWord;
    /** 昵称*/
    private String nickName;
    /** 创建时间*/
    private long createTime;
    /** 状态*/
    private int status;
    /** 最后登录ip*/
    private String lashLoginIp;
    /** 最后登录时间*/
    private long lastLoginTime;

    public Member() { }

    public Member(long id, String loginName, String passWord, String nickName) {
        this.id = id;
        this.loginName = loginName;
        this.passWord = passWord;
        this.nickName = nickName;
    }

}
